<template>
  <div>
    <div class="header">
      <p class="title">购物车</p>
      <p class="manager"  @click="handleShow()">管理</p>
    </div>
    <Maincart :isVisible="isShow" />
    <Footer :active-num="3" />
  </div>
</template>

<script>
import Maincart from "./Maincart";
import Footer from "../../components/Footer.vue";
export default {
  
  methods: {
    handleShow() {
      console.log(1);
      this.isShow = !this.isShow;
    },
  },
  data() {
    return {
      isShow:false
    };
  },
  components: {
    Maincart,
    Footer,
  },
};
</script>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.header {
  position: relative;
  z-index: 1;
  line-height: 22px;
  text-align: center;
  background-color: #fff;
  user-select: none;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  height: 46px;
  line-height: 22px;
  text-align: center;
  .title {
    max-width: 60%;
    margin: 0 auto;
    color: #323233;
    font-weight: 500;
    font-size: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .manager {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    cursor: pointer;
    color: #000;
    right: 0;
  }
}
</style>